Content Block Function

The ecmContentBlock and ecmContentBlockEX functions are used to display a content block on an Ektron CMS400.NET Web page.

Shown here is the format for the ecmContentBlock function:

<?php ecmContentBlock (ID) ?>

Here is the format for the ecmContentBlockEX function:

<?php ecmContentBlockEx (ID, “XSLT”, Override) ?>

 

Note: As an alternative, you can use the multipurpose function, which can display either a content block or a content block associated with a form. For more information, see MultiPurpose Function.

This function is basically the same as the Content Block function in ASP. See Content Block Function for details.

The only differences between the PHP function and the ASP one are the examples of implementing it. The PHP examples are below.

Static Content Block

<tr>

   <td>

      <?php ecmContentBlock(1) ?>

   </td>

</tr>

Dynamic Content Block

<tr>

   <td>

      <?php ecmContentBlock($id) ?>

   </td>

</tr>

XML Content Block

<tr>

    <td>

       <?php ecmContentBlockEx (13, “”, 1) ?>

    </td>

</tr>

Previous TopicNext Topic|